﻿using GC_RF.Domain.Abstractions.Interfaces.Factories;
using GC_RF.Domain.Abstractions.Interfaces.Helpers;
using GC_RF.Domain.Helpers;

namespace GC_RF.Domain.Factories
{
	public class HelperFactory : IHelperFactory
	{
		#region IHelperFactory Members

		public ICryptographicAdapter CreateCryptographicAdapter()
		{
			return new CryptographicAdapter();
		}

		public IMailer CreateMailer(bool isDebug, string fromEmail, string fromName)
		{
			return new Mailer(isDebug, fromEmail, fromName);
		}

		public IFileManager CreateFileManager()
		{
			return new FileManager();
		}

		public IHttpPostedFileManager CreateHttpPostedFileManager()
		{
			return new HttpPostedFileManager(CreateFileManager());
		}

		#endregion
	}
}
